﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Untitled Page</title>

    <script src="../O.cn_My/js/prototype.js" type="text/javascript"></script>

    <script src="hashtable.js" type="text/javascript"></script>
   
</head>
<body>
        <div id="output"></div>
</body>
 <script type="text/javascript">
        var hashtable = new HashTable();
        for(var i = 0 ;i<10000;i++)
        {
            hashtable.Add(i*1.2,i);
        }
        var now = (new Date()).getTime();
        var temp ="";
        for(var i=0;i<100;i++)
        {
<<<<<<< .mine
             if(hashtable.Contains(1+i*2.8))
             {  
                hashtable.Remove(i*2.8);
             }
=======
             temp = hashtable.Contains(i*2.8)+" time pass:"+((new Date()).getTime()-now)+"ms";
>>>>>>> .r4
        }
        hashtable.Clear();
        $("output").innerHTML = " time pass:"+((new Date()).getTime()-now)+"ms";
        //alert(hashtable.Count());
        
    </script>
</html>
